package com.spider.im.user.resp;

import com.spider.im.common.annotation.Desensitize;
import com.spider.im.common.annotation.DesensitizeStrategy;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author joy
 * @since 2025-04-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description="用户表")
public class UserResp implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "用户名称")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Desensitize(strategy = DesensitizeStrategy.PHONE_NUMBER)
    @Schema(description = "电话号码")
    private String phone;

}
